package com.bilibili.lzx.dao;

import java.sql.*;
import java.util.Calendar;

public class App {
    public static void main(String[] args) throws SQLException {
        //Connection connection = DriverManager.getConnection("", "", "");
        //Statement statement = connection.createStatement();
        //PreparedStatement preparedStatement = connection.prepareStatement("");
        //preparedStatement.setDate(1,Date.valueOf("1233-321-321"));
        Date date = Date.valueOf("2020-12-12");
        System.out.println(date);
        java.util.Date date2 = new java.util.Date();
        long time = date2.getTime();
        Date date1 = new Date(time);
        System.out.println(date1);
        //System.out.println(date1.getSeconds());
        Calendar instance = Calendar.getInstance();
        System.out.println(instance);


    }
}
